extends "ExecuterFather.gd"
var VE
var target
var wait=false

func play():
	var t=Map.getM2V(target)
	var ve=load("res://VisualEffects/"+VE+".tscn").instance()
	Global.Battle.add_child(ve)
	ve.global_position=t.global_position
	if wait:
		ve.connect("complete",self,"onComplete",[],4)
	else:
		emit_signal("complete")
	ve.play()